<?php
    // Connecting, selecting database
    $link = mysql_connect('mysql-srv17204.ht-systems.ru', 'srv17204_admin', 'natti') or die('Could not connect: ' . mysql_error());
    mysql_select_db('srv17204_mysqldb') or die('Could not select database');
    mysql_set_charset('utf8', $link);

    // Performing SQL query
    $value = mysql_escape_string($_GET['value']);
    $id = $_GET['id'];
    $query = "UPDATE nomatch SET ru_city = '$value' WHERE id = $id";
    mysql_query($query) or die('Query failed: ' . mysql_error());
    
    // Closing connection
    mysql_close($link);
?>